import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Clase botón que indica que acciṕon se realiza dependiendo el botón presionado
 * 
 * @author Dulce Beltrán 
 * @version (a version number or a date)
 */
public class Boton  extends Actor
{  
     private Nivel1 mund;
    
     public Boton(Nivel1 world)
     {
         mund=world;
     }
    
      public void entrar()
     {
       mund.principal();
     }
     
     public void entrajuego()
     {
       mund.juego();
     }
     
     public void entraayuda()
     {
         mund.ayuda();
     }
     
     public void entracreditos()
     {
         mund.creditos();
     }
     
    
    /**
     * Act - do whatever the boton wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act() 
    {
        // Add your action code here.
    }
}
